<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>首页</title>
<link rel="stylesheet" href="../static/main/css/styles.css">
<link rel="stylesheet"
	href="../webjars/bootstrap/3.3.7-1/css/bootstrap.css">
<script type="text/javascript"
	src="../static/jqgrid/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="../webjars/bootstrap/3.3.7-1/js/bootstrap.js"></script>
<style type="text/css">
#fa {
	margin: 0;
	padding: 0 5px;
	font-weight: 1000;
	font-size: 25px;
}
</style>
</head>
<body>

	<div class="caidan">
		<div class="htmleaf-container">
			<nav class="animenu">
				<ul class="animenu__nav"
					style="margin-left: 15%; margin-right: 15%;">
					<li style="font-size: 20px; font-weight: 1100;"><a id="fa">发票管理系统</a></li>
					<li><a href="../main"><span
							class="glyphicon glyphicon-home">首页</span></a></li>
					<li><a>欢迎您:<span sec:authorize="hasRole('ROLE_DBA')">开发者</span><span
							sec:authorize="!hasRole('ROLE_DBA')"
							sec:authentication="principal.name">张三</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserTenant/zuhugl"><span
							class="glyphicon glyphicon-pencil">租户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../UserManager/xzgl"><span
							class="glyphicon glyphicon-pencil">用户编辑</span></a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../User/xzgl"><span class="glyphicon glyphicon-pencil">用户管理</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/fpcx">电子发票查询</a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/sqxx">软件授权信息</a>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../Tenantxx/zxfp">新增电子发票信息</a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/yhcz">用户操作日志</a></li>
					<li sec:authorize="hasRole('ROLE_ADMIN')"><a
						href="../SysUser/xgmm"><span class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_MANAGER')"><a
						href="../UserManager/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li sec:authorize="hasRole('ROLE_ZUHU')"><a
						href="../UserTenant/xgmm"><span
							class="glyphicon glyphicon-tags">&nbsp;修改密码</span></a></li>
					<li style="float: right;"><a href="../logout"><span
							class="glyphicon glyphicon-off">注销</span></a></li>
				</ul>
			</nav>
		</div>
	</div>

	<style type="text/css">
table {
	margin-left: 440px;
	margin-top: 280px;
	width: 500px;
	border: 1px solid black;
}

th, td {
	text-align: center;
	height: 30px;
	border: 1px solid black;
}
</style>
	<div>
		<table>
			<thead>
				<tr>
					<th>用户名</th>
					<th>注册时间</th>
					<th>到期时间</th>
					<!-- <th>授权</th> -->
				</tr>
			</thead>
			<tbody>
				<tr th:each="sq:${findAll}">
					<td th:text="${sq.username}">用户名</td>
					<td id="zcsj" th:text="${sq.start}">注册时间</td>
					<td id="djsj" th:text="${sq.over}">到期时间</td>
					<!-- <td onload="aaa()" id="sq" ></td> -->
				</tr>
			</tbody>
		</table>
	</div>
	<!-- <script type="text/javascript">
		function aaa(){
			var zcsj=$('#zcsj').val();
			var djsj=$('#djsj').val();
			var zcsjdate = Date.parse(zcsj);
			var djsjdate = Date.parse(djsj);
			if(djsj>zcsjdate){
				$('#sq').html("已授权");
			}else{
				$('#sq').html("");
			}
		}
	</script> -->

</body>
</html>